<?php
defined('IN_PHPCMS') or exit('No permission resources.');
class speciallist_tag {
	public function __construct() {
		$this->dbs = pc_base::load_model('speciallist_model');
		$this->dbm = pc_base::load_model('maplist_model');
		$this->dbl = pc_base::load_model('linklist_model');
		$this->dbi = pc_base::load_model('indexcategory_model');
 	}

	public function specials($data) {
		$sql = '`display`<>\'0\'';
		return $this->dbs->select($sql, '*', $data['limit'], 'weight DESC');
	}

	public function maps($data) {
		$sql = '`display`<>\'0\'';
		return $this->dbm->select($sql, '*', $data['limit'], 'weight DESC');
	}

	public function links($data) {
		$sql = '`display`<>\'0\'';
		return $this->dbl->select($sql, '*', $data['limit'], 'weight DESC');
	}

	public function indexcategory($data) {
		return $this->dbi->select('', '*', $data['limit'], '');
	}


	public function count() {
	}

}